package com.tes.database;

import com.tes.tabel.TabelHighScore;
import com.tes.tabel.TabelSetting;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {
	private static final String NAMA_DATABASE = "db_toilet_hunter";
	private static final int VERSI_DATABASE = 2;

	public DatabaseHelper(Context context) {
		super(context, NAMA_DATABASE, null, VERSI_DATABASE);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		TabelHighScore.onCreate(db);
		TabelSetting.onCreate(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		TabelHighScore.onUpgrade(db, oldVersion, newVersion);
		TabelSetting.onUpgrade(db, oldVersion, newVersion);
	}

}
